package com.iss.umservice.manager;

import java.util.List;

import com.iss.iframework.common.errcode.AppRuntimeException;
import com.iss.umservice.bean.RoleBean;
import com.iss.umservice.bean.StationBean;

/**
 *��λ��Ϣ����ӿ�
 * 
 * @author suxiaoping
 * @date 2012-8-14
 */
public interface StationManager
{
    
    /**
     * ���������ѯ��λ��Ϣ
     * 
     * @param stationName �û���
     * @param systemId ϵͳID
     * @return bean
     */
    List<StationBean> queryStationInfo(String stationName, String systemId,
            int offset, int row) throws AppRuntimeException;;
    
    /**
     * ���Ӹ�λ��Ϣ
     * 
     * @param bean
     * @return
     */
    void addStationInfo(StationBean bean) throws AppRuntimeException;
    
    /**
     * ��Ӹ�λ���ɫ�Ĺ�ϵ
     * 
     * @param stationId ��λId
     * @param systemId ϵͳID
     * @return
     */
    void insertStation_Role_Ref(StationBean bean) throws AppRuntimeException;
    
    /**
     * �������ͳ�Ƹ�λ
     * 
     * @param stationName ��λ���
     * @param systemId ϵͳID
     * @return
     */
    int countStationInfo(String stationName, String systemId)
            throws AppRuntimeException;
    
    /**
     * ��ݸ�λIDɾ���λ��Ϣ
     * 
     * @param
     * @return
     */
    void delStationInfoById(String stationId) throws AppRuntimeException;
    
    /**
     * �޸ĸ�λ��Ϣ
     * 
     * @param bean
     * @return
     */
    void modifyStationInfo(StationBean bean) throws AppRuntimeException;
    
    /**
     * ���ID��ѯ��λ��Ϣ
     * 
     * @param stationId ��λId
     * @return
     */
    public StationBean queryStationInfoByID(String stationId)
            throws AppRuntimeException;
    
    /**
     * ���ID��ѯ��λ���ɫ��Ӧ��Ϣ
     * 
     * @param stationId ��λId
     * @return
     */
    List<RoleBean> queryRoleInfoByStationId(String stationId);

    String checkStationName(String stationName);
    
}
